package com.wn.cloud.seata.handler;

import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
import org.apache.ibatis.reflection.MetaObject;
import org.springframework.stereotype.Component;

/**
 * @FileName: MybatisFillHandler
 * @Description: TODO
 * @Author: MaWenHao
 * @Created: 2020/4/17 - 16:35
 * @Version: V1.0
 * @Company: 东方微银科技（北京）有限公司
 */
@Component
public class MybatisFillHandler implements MetaObjectHandler {

    public static final String ORDER_STATUS_FIELD_NAME = "status";
    @Override
    public void insertFill(MetaObject metaObject) {
        this.setInsertFieldValByName(ORDER_STATUS_FIELD_NAME, 0, metaObject);
    }

    @Override
    public void updateFill(MetaObject metaObject) {

    }
}
